package com.e3.sysmg.security.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.e3.core.base.SuperEntity;

@Entity
@Table(name="T_MODULE")
public class ModuleEntity extends SuperEntity{
	private static final long serialVersionUID = -3490577507462281438L;
	
	private String code;
	
	private String name;
	
	private String path;
	
	private int status;
	
	private int authCode;
	
	private long parentId;
	
	private long childrenSize;

	@Column(name="CODE")
	public String getCode(){
		return this.code;
	}
	
	public void setCode(String code){
		this.code = code;
	}
	
	@Column(name="NAME")
	public String getName(){
		return this.name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	@Column(name="PATH")
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	
	@Column(name="STATUS")
	public int getStatus(){
		return this.status;
	}
	
	public void setStatus(int status){
		this.status = status;
	}
	
	@Column(name="AUTH_CODE")
	public int getAuthCode() {
		return authCode;
	}

	public void setAuthCode(int authCode) {
		this.authCode = authCode;
	}
	
	@Column(name="PARENT_ID")
	public long getParentId() {
		return parentId;
	}

	public void setParentId(long parentId) {
		this.parentId = parentId;
	}

	@Transient
	public long getChildrenSize() {
		return childrenSize;
	}

	public void setChildrenSize(long childrenSize) {
		this.childrenSize = childrenSize;
	}
	
}